package com.qqtech.qquan.pub.service;

import java.util.List;

import com.qqtech.core.frame.service.BaseService;
import com.qqtech.qquan.pub.model.*;

public interface PubPromotionService extends BaseService<PubPromotion> {
	/**
	 * 推广目标位置是否已被占用
	 * @param targetBizzId
	 * @return
	 */
	public boolean isTargetPromotion(Integer targetBizzId,Integer targetBizzType);
	
	/**
	 * 推广源目标是否已经推广
	 * @param sourceBizzId
	 * @return
	 */
	public boolean isSourcePromotion(Integer sourceBizzId,Integer sourceBizzType);
	
	
	/**
	 * 获取推广目标上的产品
	 * @param sourceBizzId
	 * @return
	 */
	public List<PubPromotionVo> getPubPromotionVoByTarget(Integer targetBizzId,Integer targetBizzType);
	
	/**
	 * 获取源目标上的推广
	 * @param sourceBizzId
	 * @return
	 */
	public List<PubPromotionVo> getPubPromotionVoBySource(Integer sourceBizzId,Integer sourceBizzType);
	
	
	/**
	 * 目标、对象获取vo
	 * @param targetBizzId
	 * @return
	 */
	public PubPromotionVo getPubPromotionVo(Integer targetBizzId,Integer targetBizzType,Integer sourceBizzId,Integer sourceBizzType);
}